<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" charset="utf-8" th:src="@{ueditor/ueditor.config.js}"></script>
    <script type="text/javascript" charset="utf-8" th:src="@{ueditor/ueditor.all.js}"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" th:src="@{ueditor/lang/zh-cn/zh-cn.js}"></script>
    <style>
        body{
            text-align: center;
            margin: 0 auto;
        }
        #editor{
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>在线测试文本编辑</h1>
    <script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
</div>
<script type="text/javascript">
    const ue = UE.getEditor('editor');
</script>
</body>
</html>
